package com.hydl.power.service.impl;

import com.hydl.power.service.LocationService;
import com.hydl.power.utils.CalculateDistanceUtils;
import org.gavaghan.geodesy.Ellipsoid;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class LocationServiceImpl implements LocationService {




    @Override
    public List getLocation() {
        List list=new ArrayList<>();
        if(WebSocketServiceImpl.locationMap.size()>0){
            for (Map.Entry<String, String> entry : WebSocketServiceImpl.locationMap.entrySet()) {
                String[] str={entry.getValue()};
                list.add(str);
            }
        }
        return list;
    }

}
